An Elementary Proof of Double Greibach Normal Form
نویسنده
چکیده
In [1,6,7] elementary proofs are given of Greibach Normal Form of context-free grammars [4]. Here we do the same for Double Greibach Normal Form, where it is required that each right-hand side of a production both starts and ends with a terminal symbol [5]. In [5], first a grammar in Greibach Normal Form is constructed, which is then transformed into Double Greibach Normal Form; both transformations use matrix manipulation. Here we give a direct construction, with an elementary correctness proof. We first discuss the construction of Urbanek in 161. Let G = (N, T, S, P> be a context-free grammar in Chomsky Normal Form. N is the set of nonterminals, T the set of terminals, S is the initial nonterminal, and P is the set of productions, of the form A --) BC or A + a (where A,B,C E N and a E T). First a grammar H = (N’, T, S, P’) is constructed that is not yet in Greibach NF: N’ = N u (N x N) and P’ consists of the following productions (where capitals are
منابع مشابه
A Generalized Greibach Normal Form for Definite Clause Grammars
An arbitrary definite clause grammar can be transforaled into a so-called Generalized Greibach Normal Form (GGNF), a generalization of the classical Greibach Normat Form (GNF) for context-free grammars. The normalized definite clause grammar is declaratively equivalent to the original definite clause grammar, that is, it assigns the same analyses to the same strings. Offline-parsability of the ...
متن کاملA Formalisation of the Normal Forms of Context-Free Grammars in HOL4
We describe the formalisation of the Chomsky and Greibach normal forms for context-free grammars (CFGs) using the HOL4 theorem prover. We discuss the varying degrees to which proofs that are straightforward on pen and paper, turn out to be much harder to mechanise. While both proofs are of similar length in their informal presentations, the mechanised proofs for Greibach normal form blow-up con...
متن کاملGreibach Normal Form Transformation, Revisited
We develop a new method for placing a given context-free grammar into Greibach normal form with only polynomial increase of its size. Starting with an arbitrary "-free context-free grammar G, we transform G into an equivalent context-free grammar H in extended Greibach normal form; i.e., in addition to rules, fulllling the Greibach normal form properties, the grammar can have chain rules. The s...
متن کاملThe Hardest Context-free Language Revised
The Hardest Context-free Language L0 is one context-free language (cfl) from which any cfl may be obtained by an inverse homomorphism [Gre73]. One key of proving that the Hardest Context-free Language L0 exists is that every cfl L can be generated by a contextfree grammar (cfg) G in Greibach Normal form (GNF) so that L = L(G) [Gre65]. We present a new proof of the well-known result given in [Gr...
متن کاملA Polynomial-Time Algorithm for Deciding Bisimulation Equivalence of Normed Basic Parallel Processes
A polynomial-time algorithm is presented for deciding bisimulation equivalence of so-called Basic Parallel Processes: multisets of elementary processes combined by a commutative parallel-composition operator. 1 Discussion Consider a collection (actually a multiset) of \elementary processes," each of a nite number of diierent kinds. At any instant, one of the elementary processes may spontaneous...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Inf. Process. Lett.
دوره 44 شماره
صفحات -
تاریخ انتشار 1992